<?php
echo '<head><meta http-equiv="refresh" content="2;url=\'' . $url . '\'"</head>';
echo '<center><br><br><b>Redirecting</b><br><img src="'.base_url().'temp/images/loading2.gif"><br><br></center>';  